package cn.kow.kmall.service;

import cn.kow.kmall.pojo.dto.UserDTO;
import cn.kow.kmall.pojo.dto.UserInfoDTO;
import cn.kow.kmall.pojo.dto.UserQueryDTO;
import cn.kow.kmall.pojo.entity.User;
import org.springframework.data.domain.Page;

public interface UserService {

    User getUserById(Long id);

    User getUserByUid(Long uid);

    User getUserByPhone(String phone);

    User getUserByOpenid(String openid);

    User saveWexinUser(String openid, String unionid, UserInfoDTO userInfo);

    User saveUser(UserDTO userDTO);

    Page<User> listByPage(UserQueryDTO queryDTO);
}
